var express = require('express');
var pubRouter = express.Router();
var PubController = require('../controller/PubController');
var UserController = require('../controller/UserController');

pubRouter
    .post('/userLogin', PubController.userLogin)
    .post('/managerLogin', PubController.managerLogin)
    .post('/userRegister', PubController.userRegister)
    .post('/managerRegister', PubController.managerRegister)
    .post('/userLogout', PubController.userLogout)
    .post('/managerLogout', PubController.managerLogout)
    .post('/insertUser', UserController.registUser)

module.exports = pubRouter;